/* eslint-disable no-console */
import { add } from '@/utils/utils';

onmessage = (e) => {
  const { a, b } = e.data;
  console.log(`worker calculate ${a} + ${b}`);
  postMessage(add(a, b));
};
